package com.ruoyi.jiayou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiayou.mapper.CfPetrolOilMapper;
import com.ruoyi.jiayou.domain.CfPetrolOil;
import com.ruoyi.jiayou.service.ICfPetrolOilService;

/**
 * 加油站油价Service业务层处理
 * 
 * @author zhangbiao
 * @date 2024-06-06
 */
@Service
public class CfPetrolOilServiceImpl implements ICfPetrolOilService 
{
    @Autowired
    private CfPetrolOilMapper cfPetrolOilMapper;

    /**
     * 查询加油站油价
     * 
     * @param id 加油站油价主键
     * @return 加油站油价
     */
    @Override
    public CfPetrolOil selectCfPetrolOilById(Long id)
    {
        return cfPetrolOilMapper.selectCfPetrolOilById(id);
    }

    /**
     * 查询加油站油价列表
     * 
     * @param cfPetrolOil 加油站油价
     * @return 加油站油价
     */
    @Override
    public List<CfPetrolOil> selectCfPetrolOilList(CfPetrolOil cfPetrolOil)
    {
        return cfPetrolOilMapper.selectCfPetrolOilList(cfPetrolOil);
    }

    /**
     * 新增加油站油价
     * 
     * @param cfPetrolOil 加油站油价
     * @return 结果
     */
    @Override
    public int insertCfPetrolOil(CfPetrolOil cfPetrolOil)
    {
        return cfPetrolOilMapper.insertCfPetrolOil(cfPetrolOil);
    }

    /**
     * 修改加油站油价
     * 
     * @param cfPetrolOil 加油站油价
     * @return 结果
     */
    @Override
    public int updateCfPetrolOil(CfPetrolOil cfPetrolOil)
    {
        return cfPetrolOilMapper.updateCfPetrolOil(cfPetrolOil);
    }

    /**
     * 批量删除加油站油价
     * 
     * @param ids 需要删除的加油站油价主键
     * @return 结果
     */
    @Override
    public int deleteCfPetrolOilByIds(Long[] ids)
    {
        return cfPetrolOilMapper.deleteCfPetrolOilByIds(ids);
    }

    /**
     * 删除加油站油价信息
     * 
     * @param id 加油站油价主键
     * @return 结果
     */
    @Override
    public int deleteCfPetrolOilById(Long id)
    {
        return cfPetrolOilMapper.deleteCfPetrolOilById(id);
    }
}
